import { createContext } from "react"
import type { ThemeType } from "./type"


/**
 * 主题上下文
 * 用于在应用中切换主题
 */
export const ThemeContext = createContext<{
	themeType: ThemeType
	toggleTheme: () => void
}>({
	themeType: 'light',
	toggleTheme: () => { }
})